﻿/**  版本信息模板在安装目录下，可自行修改。
* V_Goods_SellPrice_Log.cs
*
* 功 能： N/A
* 类 名： V_Goods_SellPrice_Log
*
* Ver    变更日期             负责人  变更内容
* ───────────────────────────────────
* V0.01  2014/3/2 15:17:07   N/A    初版
*
* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
*┌──────────────────────────────────┐
*│　此技术信息为本公司机密信息，未经本公司书面同意禁止向第三方披露．　│
*│　版权所有：动软卓越（北京）科技有限公司　　　　　　　　　　　　　　│
*└──────────────────────────────────┘
*/
using System;
using System.Data;
using System.Text;
using System.Data.SqlClient;
using Maticsoft.DBUtility;//Please add references
namespace BBPA.DAL
{
	/// <summary>
	/// 数据访问类:V_Goods_SellPrice_Log
	/// </summary>
	public partial class V_Goods_SellPrice_Log
	{
		public V_Goods_SellPrice_Log()
		{}
		#region  BasicMethod



		/// <summary>
		/// 增加一条数据
		/// </summary>
		public bool Add(BBPA.Model.V_Goods_SellPrice_Log model)
		{
			StringBuilder strSql=new StringBuilder();
			strSql.Append("insert into V_Goods_SellPrice_Log(");
			strSql.Append("id,GoodsID,PriceBefore,Dateandtime,PriceAfter,Name,ShotrName,Code,BuyPrice,SellPrice,IsPromo,IsOffShelf,BrandID,BrandName,CategoryName,Number,SupplierID,SupplierName,SupplierShortName,SupplierNumber,State,PicID,PicURL,PicWidth,PicHeight,PicTitle,CategoryNumber,SuggestStorePrice,HasRead,ComeFrom,User_Operate_LogID,Description,OperateUserID,OperateUsername,OperateUserType)");
			strSql.Append(" values (");
			strSql.Append("@id,@GoodsID,@PriceBefore,@Dateandtime,@PriceAfter,@Name,@ShotrName,@Code,@BuyPrice,@SellPrice,@IsPromo,@IsOffShelf,@BrandID,@BrandName,@CategoryName,@Number,@SupplierID,@SupplierName,@SupplierShortName,@SupplierNumber,@State,@PicID,@PicURL,@PicWidth,@PicHeight,@PicTitle,@CategoryNumber,@SuggestStorePrice,@HasRead,@ComeFrom,@User_Operate_LogID,@Description,@OperateUserID,@OperateUsername,@OperateUserType)");
			SqlParameter[] parameters = {
					new SqlParameter("@id", SqlDbType.Int,4),
					new SqlParameter("@GoodsID", SqlDbType.Int,4),
					new SqlParameter("@PriceBefore", SqlDbType.Money,8),
					new SqlParameter("@Dateandtime", SqlDbType.DateTime),
					new SqlParameter("@PriceAfter", SqlDbType.Money,8),
					new SqlParameter("@Name", SqlDbType.NVarChar,50),
					new SqlParameter("@ShotrName", SqlDbType.NVarChar,50),
					new SqlParameter("@Code", SqlDbType.VarChar,50),
					new SqlParameter("@BuyPrice", SqlDbType.Money,8),
					new SqlParameter("@SellPrice", SqlDbType.Money,8),
					new SqlParameter("@IsPromo", SqlDbType.Bit,1),
					new SqlParameter("@IsOffShelf", SqlDbType.Bit,1),
					new SqlParameter("@BrandID", SqlDbType.Int,4),
					new SqlParameter("@BrandName", SqlDbType.NVarChar,50),
					new SqlParameter("@CategoryName", SqlDbType.NVarChar,50),
					new SqlParameter("@Number", SqlDbType.VarChar,50),
					new SqlParameter("@SupplierID", SqlDbType.Int,4),
					new SqlParameter("@SupplierName", SqlDbType.NVarChar,50),
					new SqlParameter("@SupplierShortName", SqlDbType.NVarChar,50),
					new SqlParameter("@SupplierNumber", SqlDbType.NVarChar,50),
					new SqlParameter("@State", SqlDbType.TinyInt,1),
					new SqlParameter("@PicID", SqlDbType.Int,4),
					new SqlParameter("@PicURL", SqlDbType.NVarChar,500),
					new SqlParameter("@PicWidth", SqlDbType.Int,4),
					new SqlParameter("@PicHeight", SqlDbType.Int,4),
					new SqlParameter("@PicTitle", SqlDbType.NVarChar,200),
					new SqlParameter("@CategoryNumber", SqlDbType.VarChar,50),
					new SqlParameter("@SuggestStorePrice", SqlDbType.Money,8),
					new SqlParameter("@HasRead", SqlDbType.Bit,1),
					new SqlParameter("@ComeFrom", SqlDbType.TinyInt,1),
					new SqlParameter("@User_Operate_LogID", SqlDbType.Int,4),
					new SqlParameter("@Description", SqlDbType.NVarChar,200),
					new SqlParameter("@OperateUserID", SqlDbType.Int,4),
					new SqlParameter("@OperateUsername", SqlDbType.NVarChar,50),
					new SqlParameter("@OperateUserType", SqlDbType.TinyInt,1)};
			parameters[0].Value = model.id;
			parameters[1].Value = model.GoodsID;
			parameters[2].Value = model.PriceBefore;
			parameters[3].Value = model.Dateandtime;
			parameters[4].Value = model.PriceAfter;
			parameters[5].Value = model.Name;
			parameters[6].Value = model.ShotrName;
			parameters[7].Value = model.Code;
			parameters[8].Value = model.BuyPrice;
			parameters[9].Value = model.SellPrice;
			parameters[10].Value = model.IsPromo;
			parameters[11].Value = model.IsOffShelf;
			parameters[12].Value = model.BrandID;
			parameters[13].Value = model.BrandName;
			parameters[14].Value = model.CategoryName;
			parameters[15].Value = model.Number;
			parameters[16].Value = model.SupplierID;
			parameters[17].Value = model.SupplierName;
			parameters[18].Value = model.SupplierShortName;
			parameters[19].Value = model.SupplierNumber;
			parameters[20].Value = model.State;
			parameters[21].Value = model.PicID;
			parameters[22].Value = model.PicURL;
			parameters[23].Value = model.PicWidth;
			parameters[24].Value = model.PicHeight;
			parameters[25].Value = model.PicTitle;
			parameters[26].Value = model.CategoryNumber;
			parameters[27].Value = model.SuggestStorePrice;
			parameters[28].Value = model.HasRead;
			parameters[29].Value = model.ComeFrom;
			parameters[30].Value = model.User_Operate_LogID;
			parameters[31].Value = model.Description;
			parameters[32].Value = model.OperateUserID;
			parameters[33].Value = model.OperateUsername;
			parameters[34].Value = model.OperateUserType;

			int rows=DbHelperSQL.ExecuteSql(strSql.ToString(),parameters);
			if (rows > 0)
			{
				return true;
			}
			else
			{
				return false;
			}
		}
		/// <summary>
		/// 更新一条数据
		/// </summary>
		public bool Update(BBPA.Model.V_Goods_SellPrice_Log model)
		{
			StringBuilder strSql=new StringBuilder();
			strSql.Append("update V_Goods_SellPrice_Log set ");
			strSql.Append("id=@id,");
			strSql.Append("GoodsID=@GoodsID,");
			strSql.Append("PriceBefore=@PriceBefore,");
			strSql.Append("Dateandtime=@Dateandtime,");
			strSql.Append("PriceAfter=@PriceAfter,");
			strSql.Append("Name=@Name,");
			strSql.Append("ShotrName=@ShotrName,");
			strSql.Append("Code=@Code,");
			strSql.Append("BuyPrice=@BuyPrice,");
			strSql.Append("SellPrice=@SellPrice,");
			strSql.Append("IsPromo=@IsPromo,");
			strSql.Append("IsOffShelf=@IsOffShelf,");
			strSql.Append("BrandID=@BrandID,");
			strSql.Append("BrandName=@BrandName,");
			strSql.Append("CategoryName=@CategoryName,");
			strSql.Append("Number=@Number,");
			strSql.Append("SupplierID=@SupplierID,");
			strSql.Append("SupplierName=@SupplierName,");
			strSql.Append("SupplierShortName=@SupplierShortName,");
			strSql.Append("SupplierNumber=@SupplierNumber,");
			strSql.Append("State=@State,");
			strSql.Append("PicID=@PicID,");
			strSql.Append("PicURL=@PicURL,");
			strSql.Append("PicWidth=@PicWidth,");
			strSql.Append("PicHeight=@PicHeight,");
			strSql.Append("PicTitle=@PicTitle,");
			strSql.Append("CategoryNumber=@CategoryNumber,");
			strSql.Append("SuggestStorePrice=@SuggestStorePrice,");
			strSql.Append("HasRead=@HasRead,");
			strSql.Append("ComeFrom=@ComeFrom,");
			strSql.Append("User_Operate_LogID=@User_Operate_LogID,");
			strSql.Append("Description=@Description,");
			strSql.Append("OperateUserID=@OperateUserID,");
			strSql.Append("OperateUsername=@OperateUsername,");
			strSql.Append("OperateUserType=@OperateUserType");
			strSql.Append(" where ");
			SqlParameter[] parameters = {
					new SqlParameter("@id", SqlDbType.Int,4),
					new SqlParameter("@GoodsID", SqlDbType.Int,4),
					new SqlParameter("@PriceBefore", SqlDbType.Money,8),
					new SqlParameter("@Dateandtime", SqlDbType.DateTime),
					new SqlParameter("@PriceAfter", SqlDbType.Money,8),
					new SqlParameter("@Name", SqlDbType.NVarChar,50),
					new SqlParameter("@ShotrName", SqlDbType.NVarChar,50),
					new SqlParameter("@Code", SqlDbType.VarChar,50),
					new SqlParameter("@BuyPrice", SqlDbType.Money,8),
					new SqlParameter("@SellPrice", SqlDbType.Money,8),
					new SqlParameter("@IsPromo", SqlDbType.Bit,1),
					new SqlParameter("@IsOffShelf", SqlDbType.Bit,1),
					new SqlParameter("@BrandID", SqlDbType.Int,4),
					new SqlParameter("@BrandName", SqlDbType.NVarChar,50),
					new SqlParameter("@CategoryName", SqlDbType.NVarChar,50),
					new SqlParameter("@Number", SqlDbType.VarChar,50),
					new SqlParameter("@SupplierID", SqlDbType.Int,4),
					new SqlParameter("@SupplierName", SqlDbType.NVarChar,50),
					new SqlParameter("@SupplierShortName", SqlDbType.NVarChar,50),
					new SqlParameter("@SupplierNumber", SqlDbType.NVarChar,50),
					new SqlParameter("@State", SqlDbType.TinyInt,1),
					new SqlParameter("@PicID", SqlDbType.Int,4),
					new SqlParameter("@PicURL", SqlDbType.NVarChar,500),
					new SqlParameter("@PicWidth", SqlDbType.Int,4),
					new SqlParameter("@PicHeight", SqlDbType.Int,4),
					new SqlParameter("@PicTitle", SqlDbType.NVarChar,200),
					new SqlParameter("@CategoryNumber", SqlDbType.VarChar,50),
					new SqlParameter("@SuggestStorePrice", SqlDbType.Money,8),
					new SqlParameter("@HasRead", SqlDbType.Bit,1),
					new SqlParameter("@ComeFrom", SqlDbType.TinyInt,1),
					new SqlParameter("@User_Operate_LogID", SqlDbType.Int,4),
					new SqlParameter("@Description", SqlDbType.NVarChar,200),
					new SqlParameter("@OperateUserID", SqlDbType.Int,4),
					new SqlParameter("@OperateUsername", SqlDbType.NVarChar,50),
					new SqlParameter("@OperateUserType", SqlDbType.TinyInt,1)};
			parameters[0].Value = model.id;
			parameters[1].Value = model.GoodsID;
			parameters[2].Value = model.PriceBefore;
			parameters[3].Value = model.Dateandtime;
			parameters[4].Value = model.PriceAfter;
			parameters[5].Value = model.Name;
			parameters[6].Value = model.ShotrName;
			parameters[7].Value = model.Code;
			parameters[8].Value = model.BuyPrice;
			parameters[9].Value = model.SellPrice;
			parameters[10].Value = model.IsPromo;
			parameters[11].Value = model.IsOffShelf;
			parameters[12].Value = model.BrandID;
			parameters[13].Value = model.BrandName;
			parameters[14].Value = model.CategoryName;
			parameters[15].Value = model.Number;
			parameters[16].Value = model.SupplierID;
			parameters[17].Value = model.SupplierName;
			parameters[18].Value = model.SupplierShortName;
			parameters[19].Value = model.SupplierNumber;
			parameters[20].Value = model.State;
			parameters[21].Value = model.PicID;
			parameters[22].Value = model.PicURL;
			parameters[23].Value = model.PicWidth;
			parameters[24].Value = model.PicHeight;
			parameters[25].Value = model.PicTitle;
			parameters[26].Value = model.CategoryNumber;
			parameters[27].Value = model.SuggestStorePrice;
			parameters[28].Value = model.HasRead;
			parameters[29].Value = model.ComeFrom;
			parameters[30].Value = model.User_Operate_LogID;
			parameters[31].Value = model.Description;
			parameters[32].Value = model.OperateUserID;
			parameters[33].Value = model.OperateUsername;
			parameters[34].Value = model.OperateUserType;

			int rows=DbHelperSQL.ExecuteSql(strSql.ToString(),parameters);
			if (rows > 0)
			{
				return true;
			}
			else
			{
				return false;
			}
		}

		/// <summary>
		/// 删除一条数据
		/// </summary>
		public bool Delete()
		{
			//该表无主键信息，请自定义主键/条件字段
			StringBuilder strSql=new StringBuilder();
			strSql.Append("delete from V_Goods_SellPrice_Log ");
			strSql.Append(" where ");
			SqlParameter[] parameters = {
			};

			int rows=DbHelperSQL.ExecuteSql(strSql.ToString(),parameters);
			if (rows > 0)
			{
				return true;
			}
			else
			{
				return false;
			}
		}


		/// <summary>
		/// 得到一个对象实体
		/// </summary>
		public BBPA.Model.V_Goods_SellPrice_Log GetModel()
		{
			//该表无主键信息，请自定义主键/条件字段
			StringBuilder strSql=new StringBuilder();
			strSql.Append("select  top 1 id,GoodsID,PriceBefore,Dateandtime,PriceAfter,Name,ShotrName,Code,BuyPrice,SellPrice,IsPromo,IsOffShelf,BrandID,BrandName,CategoryName,Number,SupplierID,SupplierName,SupplierShortName,SupplierNumber,State,PicID,PicURL,PicWidth,PicHeight,PicTitle,CategoryNumber,SuggestStorePrice,HasRead,ComeFrom,User_Operate_LogID,Description,OperateUserID,OperateUsername,OperateUserType from V_Goods_SellPrice_Log ");
			strSql.Append(" where ");
			SqlParameter[] parameters = {
			};

			BBPA.Model.V_Goods_SellPrice_Log model=new BBPA.Model.V_Goods_SellPrice_Log();
			DataSet ds=DbHelperSQL.Query(strSql.ToString(),parameters);
			if(ds.Tables[0].Rows.Count>0)
			{
				return DataRowToModel(ds.Tables[0].Rows[0]);
			}
			else
			{
				return null;
			}
		}


		/// <summary>
		/// 得到一个对象实体
		/// </summary>
		public BBPA.Model.V_Goods_SellPrice_Log DataRowToModel(DataRow row)
		{
			BBPA.Model.V_Goods_SellPrice_Log model=new BBPA.Model.V_Goods_SellPrice_Log();
			if (row != null)
			{
				if(row["id"]!=null && row["id"].ToString()!="")
				{
					model.id=int.Parse(row["id"].ToString());
				}
				if(row["GoodsID"]!=null && row["GoodsID"].ToString()!="")
				{
					model.GoodsID=int.Parse(row["GoodsID"].ToString());
				}
				if(row["PriceBefore"]!=null && row["PriceBefore"].ToString()!="")
				{
					model.PriceBefore=decimal.Parse(row["PriceBefore"].ToString());
				}
				if(row["Dateandtime"]!=null && row["Dateandtime"].ToString()!="")
				{
					model.Dateandtime=DateTime.Parse(row["Dateandtime"].ToString());
				}
				if(row["PriceAfter"]!=null && row["PriceAfter"].ToString()!="")
				{
					model.PriceAfter=decimal.Parse(row["PriceAfter"].ToString());
				}
				if(row["Name"]!=null)
				{
					model.Name=row["Name"].ToString();
				}
				if(row["ShotrName"]!=null)
				{
					model.ShotrName=row["ShotrName"].ToString();
				}
				if(row["Code"]!=null)
				{
					model.Code=row["Code"].ToString();
				}
				if(row["BuyPrice"]!=null && row["BuyPrice"].ToString()!="")
				{
					model.BuyPrice=decimal.Parse(row["BuyPrice"].ToString());
				}
				if(row["SellPrice"]!=null && row["SellPrice"].ToString()!="")
				{
					model.SellPrice=decimal.Parse(row["SellPrice"].ToString());
				}
				if(row["IsPromo"]!=null && row["IsPromo"].ToString()!="")
				{
					if((row["IsPromo"].ToString()=="1")||(row["IsPromo"].ToString().ToLower()=="true"))
					{
						model.IsPromo=true;
					}
					else
					{
						model.IsPromo=false;
					}
				}
				if(row["IsOffShelf"]!=null && row["IsOffShelf"].ToString()!="")
				{
					if((row["IsOffShelf"].ToString()=="1")||(row["IsOffShelf"].ToString().ToLower()=="true"))
					{
						model.IsOffShelf=true;
					}
					else
					{
						model.IsOffShelf=false;
					}
				}
				if(row["BrandID"]!=null && row["BrandID"].ToString()!="")
				{
					model.BrandID=int.Parse(row["BrandID"].ToString());
				}
				if(row["BrandName"]!=null)
				{
					model.BrandName=row["BrandName"].ToString();
				}
				if(row["CategoryName"]!=null)
				{
					model.CategoryName=row["CategoryName"].ToString();
				}
				if(row["Number"]!=null)
				{
					model.Number=row["Number"].ToString();
				}
				if(row["SupplierID"]!=null && row["SupplierID"].ToString()!="")
				{
					model.SupplierID=int.Parse(row["SupplierID"].ToString());
				}
				if(row["SupplierName"]!=null)
				{
					model.SupplierName=row["SupplierName"].ToString();
				}
				if(row["SupplierShortName"]!=null)
				{
					model.SupplierShortName=row["SupplierShortName"].ToString();
				}
				if(row["SupplierNumber"]!=null)
				{
					model.SupplierNumber=row["SupplierNumber"].ToString();
				}
				if(row["State"]!=null && row["State"].ToString()!="")
				{
					model.State=int.Parse(row["State"].ToString());
				}
				if(row["PicID"]!=null && row["PicID"].ToString()!="")
				{
					model.PicID=int.Parse(row["PicID"].ToString());
				}
				if(row["PicURL"]!=null)
				{
					model.PicURL=row["PicURL"].ToString();
				}
				if(row["PicWidth"]!=null && row["PicWidth"].ToString()!="")
				{
					model.PicWidth=int.Parse(row["PicWidth"].ToString());
				}
				if(row["PicHeight"]!=null && row["PicHeight"].ToString()!="")
				{
					model.PicHeight=int.Parse(row["PicHeight"].ToString());
				}
				if(row["PicTitle"]!=null)
				{
					model.PicTitle=row["PicTitle"].ToString();
				}
				if(row["CategoryNumber"]!=null)
				{
					model.CategoryNumber=row["CategoryNumber"].ToString();
				}
				if(row["SuggestStorePrice"]!=null && row["SuggestStorePrice"].ToString()!="")
				{
					model.SuggestStorePrice=decimal.Parse(row["SuggestStorePrice"].ToString());
				}
				if(row["HasRead"]!=null && row["HasRead"].ToString()!="")
				{
					if((row["HasRead"].ToString()=="1")||(row["HasRead"].ToString().ToLower()=="true"))
					{
						model.HasRead=true;
					}
					else
					{
						model.HasRead=false;
					}
				}
				if(row["ComeFrom"]!=null && row["ComeFrom"].ToString()!="")
				{
					model.ComeFrom=int.Parse(row["ComeFrom"].ToString());
				}
				if(row["User_Operate_LogID"]!=null && row["User_Operate_LogID"].ToString()!="")
				{
					model.User_Operate_LogID=int.Parse(row["User_Operate_LogID"].ToString());
				}
				if(row["Description"]!=null)
				{
					model.Description=row["Description"].ToString();
				}
				if(row["OperateUserID"]!=null && row["OperateUserID"].ToString()!="")
				{
					model.OperateUserID=int.Parse(row["OperateUserID"].ToString());
				}
				if(row["OperateUsername"]!=null)
				{
					model.OperateUsername=row["OperateUsername"].ToString();
				}
				if(row["OperateUserType"]!=null && row["OperateUserType"].ToString()!="")
				{
					model.OperateUserType=int.Parse(row["OperateUserType"].ToString());
				}
			}
			return model;
		}

		/// <summary>
		/// 获得数据列表
		/// </summary>
		public DataSet GetList(string strWhere)
		{
			StringBuilder strSql=new StringBuilder();
			strSql.Append("select id,GoodsID,PriceBefore,Dateandtime,PriceAfter,Name,ShotrName,Code,BuyPrice,SellPrice,IsPromo,IsOffShelf,BrandID,BrandName,CategoryName,Number,SupplierID,SupplierName,SupplierShortName,SupplierNumber,State,PicID,PicURL,PicWidth,PicHeight,PicTitle,CategoryNumber,SuggestStorePrice,HasRead,ComeFrom,User_Operate_LogID,Description,OperateUserID,OperateUsername,OperateUserType ");
			strSql.Append(" FROM V_Goods_SellPrice_Log ");
			if(strWhere.Trim()!="")
			{
				strSql.Append(" where "+strWhere);
			}
			return DbHelperSQL.Query(strSql.ToString());
		}

		/// <summary>
		/// 获得前几行数据
		/// </summary>
		public DataSet GetList(int Top,string strWhere,string filedOrder)
		{
			StringBuilder strSql=new StringBuilder();
			strSql.Append("select ");
			if(Top>0)
			{
				strSql.Append(" top "+Top.ToString());
			}
			strSql.Append(" id,GoodsID,PriceBefore,Dateandtime,PriceAfter,Name,ShotrName,Code,BuyPrice,SellPrice,IsPromo,IsOffShelf,BrandID,BrandName,CategoryName,Number,SupplierID,SupplierName,SupplierShortName,SupplierNumber,State,PicID,PicURL,PicWidth,PicHeight,PicTitle,CategoryNumber,SuggestStorePrice,HasRead,ComeFrom,User_Operate_LogID,Description,OperateUserID,OperateUsername,OperateUserType ");
			strSql.Append(" FROM V_Goods_SellPrice_Log ");
			if(strWhere.Trim()!="")
			{
				strSql.Append(" where "+strWhere);
			}
			strSql.Append(" order by " + filedOrder);
			return DbHelperSQL.Query(strSql.ToString());
		}

		/// <summary>
		/// 获取记录总数
		/// </summary>
		public int GetRecordCount(string strWhere)
		{
			StringBuilder strSql=new StringBuilder();
			strSql.Append("select count(1) FROM V_Goods_SellPrice_Log ");
			if(strWhere.Trim()!="")
			{
				strSql.Append(" where "+strWhere);
			}
			object obj = DbHelperSQL.GetSingle(strSql.ToString());
			if (obj == null)
			{
				return 0;
			}
			else
			{
				return Convert.ToInt32(obj);
			}
		}
		/// <summary>
		/// 分页获取数据列表
		/// </summary>
		public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
		{
			StringBuilder strSql=new StringBuilder();
			strSql.Append("SELECT * FROM ( ");
			strSql.Append(" SELECT ROW_NUMBER() OVER (");
			if (!string.IsNullOrEmpty(orderby.Trim()))
			{
				strSql.Append("order by T." + orderby );
			}
			else
			{
				strSql.Append("order by T.id desc");
			}
			strSql.Append(")AS Row, T.*  from V_Goods_SellPrice_Log T ");
			if (!string.IsNullOrEmpty(strWhere.Trim()))
			{
				strSql.Append(" WHERE " + strWhere);
			}
			strSql.Append(" ) TT");
			strSql.AppendFormat(" WHERE TT.Row between {0} and {1}", startIndex, endIndex);
			return DbHelperSQL.Query(strSql.ToString());
		}

		/*
		/// <summary>
		/// 分页获取数据列表
		/// </summary>
		public DataSet GetList(int PageSize,int PageIndex,string strWhere)
		{
			SqlParameter[] parameters = {
					new SqlParameter("@tblName", SqlDbType.VarChar, 255),
					new SqlParameter("@fldName", SqlDbType.VarChar, 255),
					new SqlParameter("@PageSize", SqlDbType.Int),
					new SqlParameter("@PageIndex", SqlDbType.Int),
					new SqlParameter("@IsReCount", SqlDbType.Bit),
					new SqlParameter("@OrderType", SqlDbType.Bit),
					new SqlParameter("@strWhere", SqlDbType.VarChar,1000),
					};
			parameters[0].Value = "V_Goods_SellPrice_Log";
			parameters[1].Value = "id";
			parameters[2].Value = PageSize;
			parameters[3].Value = PageIndex;
			parameters[4].Value = 0;
			parameters[5].Value = 0;
			parameters[6].Value = strWhere;	
			return DbHelperSQL.RunProcedure("UP_GetRecordByPage",parameters,"ds");
		}*/

		#endregion  BasicMethod
		#region  ExtensionMethod

		#endregion  ExtensionMethod
	}
}

